import component from 'element-plus/es/components/tree-select/src/tree-select-option.mjs'
import { createRouter, createWebHistory } from 'vue-router'

const Home =()=>import("@/view/Home.vue")
const Member =()=>import("@/components/Members.vue")
const NewsType= ()=>import('@/components/NewsTypeList.vue')

const urls =[
    {
        path:'/',
        name:'home',
        component:Home, 
    },
    {
        path:'/home',
        name:'home',
        component:Home,
        children:[{
            path:'member',
            name:'member',
            component:Member,
          },{
            path:'newsType',
            name:'newsType',
            component:NewsType,
          }
        ]
    },

]



const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: urls,//[],
})

export default router
